home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / shopdrop.swf / scripts / __Packages / BuildingLeft.as next >
Text File  |  2007-09-27  |  752b  |  25 lines

  1. class BuildingLeft extends MovieClip
  2. {
  3.    function BuildingLeft()
  4.    {
  5.       super();
  6.       this.pos = new smashing.Point3D(0,-127.8,0);
  7.       this.origpos = this.pos.copy();
  8.       this.baseWidth = this._width;
  9.       this.baseHeight = this._height;
  10.    }
  11.    function render()
  12.    {
  13.       var _loc2_ = this.pos.x - this.origpos.x;
  14.       var _loc7_ = _loc2_ * BuildingLeft.topSlope;
  15.       var _loc6_ = _loc2_ * BuildingLeft.bottomSlope;
  16.       var _loc4_ = this.origpos.y - _loc7_;
  17.       var _loc5_ = this.origpos.y + this.baseHeight - _loc6_;
  18.       var _loc3_ = _loc5_ - _loc4_;
  19.       this._height = _loc3_;
  20.       this._width = this.baseWidth * (_loc3_ / this.baseHeight);
  21.       this._x = this.pos.x;
  22.       this._y = _loc4_;
  23.    }
  24. }
  25.